<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":"
            + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/> <!-- 设置页面的基础路径，页面所有资源引入和页面跳转都基于bathPath -->

    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal">
        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.username }">
            </div>

            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>真实姓名：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.realname }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>年龄：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.age }">
            </div>

            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>身份证号：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.idCard }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>性别：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <c:choose>
                    <c:when test="${user.gender eq '1'}">
                        <input type="text" class="input-text" disabled value="男">
                    </c:when>
                    <c:when test="${user.gender eq '2'}">
                        <input type="text" class="input-text" disabled value="女">
                    </c:when>
                </c:choose>
            </div>

            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>教育背景：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <c:choose>
                    <c:when test="${user.gender eq '1'}">
                        <input type="text" class="input-text" disabled value="专科">
                    </c:when>
                    <c:when test="${user.gender eq '2'}">
                        <input type="text" class="input-text" disabled value="本科">
                    </c:when>
                    <c:when test="${user.gender eq '3'}">
                        <input type="text" class="input-text" disabled value="研究生">
                    </c:when>
                    <c:when test="${user.gender eq '4'}">
                        <input type="text" class="input-text" disabled value="博士">
                    </c:when>
                    <c:when test="${user.gender eq '5'}">
                        <input type="text" class="input-text" disabled value="博士后">
                    </c:when>
                </c:choose>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>电话：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.phone }">
            </div>

            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>邮箱：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.email }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>科室：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <span class="select-box">
                    <c:forEach var="dept" items="${depts }">
                        <c:if test="${dept.deptId eq user.deptId}">
                            <input type="text" class="input-text" disabled value="${dept.deptName }">
                        </c:if>
                    </c:forEach>
				</span>
            </div>

            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>职务：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <span class="select-box">
					<c:forEach var="job" items="${jobs }">
                        <c:if test="${job.jobId eq user.jobId}">
                            <input type="text" class="input-text" disabled value="${job.jobName }">
                        </c:if>
                    </c:forEach>
				</span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>上级：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <span class="select-box">
                    <c:choose>
                        <c:when test="${empty user.superiorId}">
                            <input type="text" class="input-text" disabled value="无">
                        </c:when>
                        <c:otherwise>
                            <c:forEach var="superior" items="${superiors }">
                                <c:if test="${user.superiorId eq superior.userId}">
                                    <input type="text" class="input-text" disabled value="${superior.realname }">
                                </c:if>
                            </c:forEach>
                        </c:otherwise>
                    </c:choose>
				</span>
            </div>

            <label class="form-label col-xs-2 col-sm-2">荣誉：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${user.honor }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>创建人：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <span class="select-box">
                    <c:choose>
                        <c:when test="${empty user.createUser}">
                            <input type="text" class="input-text" disabled value="无">
                        </c:when>
                        <c:otherwise>
                            <c:forEach var="superior" items="${superiors }">
                                <c:if test="${user.createUser eq superior.userId}">
                                    <input type="text" class="input-text" disabled value="${superior.realname }">
                                </c:if>
                            </c:forEach>
                        </c:otherwise>
                    </c:choose>
				</span>
            </div>

            <label class="form-label col-xs-2 col-sm-2">创建时间：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text"  disabled value="${empty user.createTime ? "无创建时间" : user.createTime }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>更新人：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <span class="select-box">
                    <c:choose>
                        <c:when test="${empty user.updateUser}">
                            <input type="text" class="input-text" disabled value="无">
                        </c:when>
                        <c:otherwise>
                            <c:forEach var="superior" items="${superiors }">
                                <c:if test="${user.updateUser eq superior.userId}">
                                    <input type="text" id="superiorId" class="input-text" disabled value="${superior.realname }">
                                </c:if>
                            </c:forEach>
                        </c:otherwise>
                    </c:choose>
				</span>
            </div>

            <label class="form-label col-xs-2 col-sm-2">更新时间：</label>
            <div class="formControls col-xs-4 col-sm-4">
                <input type="text" class="input-text" disabled value="${empty user.updateTime ? "无更新时间" : user.updateTime }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>擅长：</label>
            <div class="formControls col-xs-8 col-sm-10">
                <input type="text" class="input-text" disabled value="${user.goodAt }">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>简介：</label>
            <div class="formControls col-xs-8 col-sm-10">
				<textarea id="introduction" name="introduction" class="textarea" disabled
                          placeholder="请输简介信息（250字以内）" >${user.introduction }</textarea>
            </div>
        </div>

        <div class="row cl">
            <div class="col-sm-1 col-sm-offset-2">
                <input class="btn btn-primary radius" type="submit" onclick="parent.layer.closeAll()" value="&nbsp;&nbsp;确定&nbsp;&nbsp;">
            </div>
            <div class="col-sm-1">
                <input class="btn btn-warning radius" type="submit" onclick="parent.layer.closeAll()" value="&nbsp;&nbsp;返回&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>

</body>
</html>
